package robocup.component.speechacts.coachlanguage;

public class DefineRule {

  private String  ruleName = "";

  private boolean direc    = false;

  private Rule    rule     = null;

  public String getRuleName() {

    return this.ruleName;
  }

  public void setRuleName(final String ruleName) {

    this.ruleName = ruleName;
  }

  public boolean isDirec() {

    return this.direc;
  }

  public void setDirec(final boolean direc) {

    this.direc = direc;
  }

  public Rule getRule() {

    return this.rule;
  }

  public void setRule(final Rule rule) {

    this.rule = rule;
  }

  @Override
  public String toString() {

    String dir = "";
    if (this.direc) {
      dir = " direc";
    }
    else {
      dir = " model";
    }

    return "(definerule " + this.ruleName + dir + this.rule.toString() + ")";
  }

}
